using System;

namespace VI.Fsc.OperatorGui.Models.Application.Util
{
    public static class CUtility
    {
        private const string DISPLAY_NAME_STRING = "Dynamic|OpcItem.markcode{%DISPLAY_NAME_STRING%}.functionalName";

        public static string GetComponentNameString(string keyName)
        {
            //return VI.Bfw.Components.VIForm.TextSession.
            //    GetText(DISPLAY_NAME_STRING.Replace("%DISPLAY_NAME_STRING%", keyName));
            return "";
        }

        public static string GetFullComponentNameDisplayString(string idNumber, string keyName)
        {
            string id = idNumber;
            
            if (id.LastIndexOf(".") > -1)
            {
                id = id.Substring(id.LastIndexOf(".") + 1);
            }
            
            return "[" + keyName + "-" + id + "] " + GetComponentNameString(keyName);
        }
    }
}
